home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Nothing / Include / Nothing.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.1 KB  |  82 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Nothing.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef NOTHING_H
  11. #define NOTHING_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWFRAME_H
  16. #include "FWFrame.h"
  17. #endif
  18.  
  19. #ifndef FWPART_H
  20. #include "FWPart.h"
  21. #endif
  22.  
  23. #if FW_LIB_EXPORT_PRAGMAS
  24. #pragma lib_export on
  25. #endif
  26.  
  27. //========================================================================================
  28. //    CLASS CNothingPart
  29. //========================================================================================
  30.  
  31. class FW_CLASS_ATTR CNothingPart : public FW_CPart
  32. {
  33. public:
  34.     static const ODValueType kPartKind;
  35.     static const ODValueType kPartUserName;
  36.     
  37. //----------------------------------------------------------------------------------------
  38. //    Initialization/Destruction
  39. //
  40. public:
  41.     CNothingPart(ODPart* odPart);
  42.     virtual ~CNothingPart();
  43.  
  44.     virtual void Initialize(Environment* ev);
  45.     
  46. //----------------------------------------------------------------------------------------
  47. //    Inherited API
  48. //
  49. public:
  50.     virtual FW_CFrame* NewFrame(Environment* ev,
  51.                                 ODFrame* odFrame, 
  52.                                 FW_CPresentation* presentation,
  53.                                 FW_Boolean fromStorage);
  54. };
  55.  
  56. //========================================================================================
  57. // CLASS CNothingFrame
  58. //========================================================================================
  59.  
  60. class FW_CLASS_ATTR CNothingFrame : public FW_CFrame
  61. {
  62. //----------------------------------------------------------------------------------------
  63. //    Initialization/Destruction
  64. //
  65. public:
  66.     CNothingFrame(Environment* ev, ODFrame* odFrame, FW_CPresentation* presentation, FW_CPart* part);
  67.     virtual ~CNothingFrame();
  68.  
  69. //----------------------------------------------------------------------------------------
  70. //    Inherited API
  71. //
  72. public:
  73.     virtual void Draw(Environment* ev, ODFacet* odFacet, ODShape* invalidShape);
  74.  
  75. };
  76.  
  77. #if FW_LIB_EXPORT_PRAGMAS
  78. #pragma lib_export off
  79. #endif
  80.  
  81. #endif
  82.